/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "arm_math.h"

#include "lvgl.h"
#include "lv_port_disp.h"
#include "lv_port_indev.h"
#include "lv_demo_benchmark.h"
#include "lv_demo_stress.h"
#include "lv_label.h"
#include "lv_gif.h"
#include "spi.h"

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define Heart_V_Pin GPIO_PIN_0
#define Heart_V_GPIO_Port GPIOA
#define sw4_Pin GPIO_PIN_4
#define sw4_GPIO_Port GPIOA
#define IPS_CS_Pin GPIO_PIN_6
#define IPS_CS_GPIO_Port GPIOA
#define sw2_Pin GPIO_PIN_0
#define sw2_GPIO_Port GPIOB
#define IPS_DC_Pin GPIO_PIN_1
#define IPS_DC_GPIO_Port GPIOB
#define IPS_RES_Pin GPIO_PIN_2
#define IPS_RES_GPIO_Port GPIOB
#define IPS_BL_Pin GPIO_PIN_10
#define IPS_BL_GPIO_Port GPIOB
#define sw1_Pin GPIO_PIN_12
#define sw1_GPIO_Port GPIOB
#define sw3_Pin GPIO_PIN_15
#define sw3_GPIO_Port GPIOB
#define LED_Pin GPIO_PIN_5
#define LED_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */
#define uint8 		uint8_t
#define uint16      uint16_t
#define uint32      uint32_t
#define uint64      uint64_t
#define int8        int8_t
#define int16       int16_t
#define int32       int32_t
#define int64       int64_t

#include "SEEKFREE_IPS114_SPI.h"
#include "SEEKFREE_FONT.h"

#define LED(x)   HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, (GPIO_PinState)x)
/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
